﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace Data
{
    public class SiteUserModels
    {
        public class SiteUserModel
        {
            public string firstname { get; set; }
            public bool is_admin { get; set; }
            public int user_id { get; set; }
        }

        public class SiteUserLoginModel
        {
            [Required]
            [DisplayName("Username")]
            public string username { get; set; }

            [Required]
            [DisplayName("Password")]
            [DataType(DataType.Password)]
            public string password { get; set; }

            public string message { get; set; }

            [DisplayName("Remember Me")]
            public bool remeber_me { get; set; }

        }

        public class SiteUserRegistrationModel
        {
            [Required(ErrorMessage="Username is required")]
            [DisplayName("Username")]
            [StringLength(15)]
            public string username { get; set; }

            [Required(ErrorMessage="Password is Required")]
            [StringLength(15)]
            [DisplayName("Password")]
            [DataType(DataType.Password)]
            public string password { get; set; }

            [Required]
            [DisplayName("Retype Password")]
            [DataType(DataType.Password)]

            public string retype_password { get; set; }

            [Required(ErrorMessage="Email Address is required")]
            [DisplayName("Email Address")]
            public string email {get; set;}

            [Required]
            [DisplayName("Retype Email")]
            
            public string retype_email {get; set;}

            [Required]
            [DisplayName("Timezone")]
            public int timezone_id { get; set; }

            [Required(ErrorMessage="Firstname is required")]
            [DisplayName("Firstname")]
            public string firstname { get; set; }

            [Required(ErrorMessage="Surname is required")]
            [DisplayName("Surname")]
            public string surname { get; set; }

        }

    }
}